﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Content;

namespace BeatEmUp
{
    class CommonElements
    {
        private Rectangle position;
        protected Texture2D image;
        public CommonElements(Rectangle position)
        {
            this.position = position;
        }

        protected void LoadContent(Texture2D image)
        {
            this.image = image;
        }


        protected void Draw(SpriteBatch sb)
        {
            sb.Draw(image, GameManager.customResolution.ScaleRectangle(Position), Color.White);
        }

        public Rectangle Position
        {
            set
            {
                position = value;
            }
            get
            {
                return position;
            }
        }
    }
}
